package com.lhc.feign.servicefeign.controller;

import com.lhc.feign.servicefeign.repository.HelloService;
import java.util.logging.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName FeingController
 * @Description:
 * @Author: asus
 * @CreateDate: 2020-12-25 9:34
 * @UpdateUser: asus
 * @UpdateDate: 2020-12-25 9:34
 * @UpdateRemark:
 * @Version: 1.0
 */
@RestController
@RequestMapping("/eureka")
public class FeingController {

    private static final Logger LOG = Logger.getLogger(FeingController.class.getName());

    @Autowired
    HelloService helloService;
    @RequestMapping(value = "SysHello")
    public String SysHello(String str){
        try {
            return helloService.SysHello(str);
        }catch (Exception e){
            return e.getMessage();
        }
    }
}
